home *** CD-ROM | disk | FTP | other *** search
- Path: gidora.kralizec.net.au!root
- From: Ross McKay <rosko@zeta.org.au>
- Newsgroups: comp.lang.c++
- Subject: Re: Code loses this pointer value
- Date: Tue, 09 Jan 1996 23:00:10 -0800
- Organization: Soft Technologies
- Message-ID: <30F363FA.889@zeta.org.au>
- References: <1996Jan9.021817.24635@jarvis.cs.toronto.edu>
- NNTP-Posting-Host: dialup41.syd1.zeta.org.au
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b3 (Win16; I)
-
- Victor Ng-Thow-Hing wrote:
- >
- > Hi everyone,
- >
- > I have a particularly nasty bug in my C++ class code. Basically, the code
- > loses track of the this pointer value that points to the object that is
- > calling a member function.
- > [snip]
-
- Victor, I saw a bug like this on a Windoze program once... the program
- stack had been corrupted, during a compound function call. Check for
- things that may be corrupting your stack. (of course, it may be
- something else, like a stray pointer corrupting another object which
- references your object :-)
-
- > Victor.
-
- --
- // --------------------------------------------------------------------- //
- // Ross McKay | email: rosko@zeta.org.au | The opinions expressed //
- // Soft Technologies | snail: GPO Box 562, | are my own, not those //
- // Sydney, Australia | Sydney 2001, Aus. | of my employers. //
- // --------------------------------------------------------------------- //
- // "Circumcision is no skin off my nose" (grafitti seen in Ultimo) //
- // --------------------------------------------------------------------- //
-